import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '../base.entity';

@Entity({ name: 'sys_group_user' })
export default class SysGroupUser extends BaseEntity {
  @PrimaryGeneratedColumn({ name: 'group_id' })
  @ApiProperty()
  groupId: number;

  @ApiProperty()
  @Column()
  status: number;

  @ApiProperty()
  @Column()
  role: number;

  @ApiProperty()
  @Column({ name: 'user_id' })
  userId: number;

  @ApiProperty()
  @Column()
  visibilitylevel: number;
}
